#ifndef _EquipSelectList_h__
#define _EquipSelectList_h__

#include "Global.h"
#include "ListItem.h"

enum SelectMode
{
	SingleSelect = 0,
	MultiSelect
};

class EquipSelectList
	: public CCNode
	, public ViewBase
{
public:

	EquipSelectList(void);
	~EquipSelectList(void);

	bool init();
	void refresh();
	void onEnter();
	void onExit();
	CC_SYNTHESIZE(SelectMode, mSelectMode, SelectMode);
	vector<int>& getSelectList();
	void getSelectList(vector<int>& seletList);
	CREATE_FUNC(EquipSelectList)
private:
	CCScrollView* mScrollView;
	vector<ListItem*> mCurList;
	vector<int> mSelectList;

	void onCheckBoxClick(CCObject* object);
};

#endif
